//
//  JigSawQTRecordView.h
//  JigSawKiosk
//
//  Created by Stulberg on 10-10-17.
//  Copyright 2010 FruitonLabs. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import <QTKit/QTKit.h>


@interface JigSawQTRecordView : NSView {
	QTCaptureView *captureView ;
	
	QTCaptureSession           *mCaptureSession;
	QTCaptureMovieFileOutput   *mCaptureMovieFileOutput;
	
	QTCaptureDeviceInput       *mCaptureVideoDeviceInput;
	QTCaptureDeviceInput        *mCaptureAudioDeviceInput;
	
	QTCaptureDecompressedVideoOutput    *mCaptureDecompressedVideoOutput;
    
    CVImageBufferRef                    mCurrentImageBuffer;
	
	BOOL isRecording ;
	
	NSButton *recButton ;
	NSButton *stopButton ;
	
	
}

@property (nonatomic, retain) QTCaptureView *captureView ;
@property (nonatomic, retain) NSButton *recButton ;
@property (nonatomic, retain) NSButton *stopButton ;
@property (nonatomic, retain) QTCaptureSession *mCaptureSession ;


- (void) setupViews ;
- (void) setupRecordSession ;
-(void) startSession ;
-(void) stopSession ;
- (void) toggleRecording:(NSString*) path ;
-(void) startRecording:(NSString*) path ;
-(void) stopRecording ;

@end
